import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore('user', () => {
	
	const user = ref({})
	
	const removeUser = () => (user.value = {})
	
	const setUser = ($user) => (user.value = $user)
	
	return {
		user,
		removeUser,
		setUser
	}
})